export default [
    {
      path: '/user',
      component: '../layouts/UserLayout',
      routes: [
        {
          name: 'login',
          path: '/user/login',
          component: './user/login',
        },
      ],
    },
    {
      path: '/',
      component: '../layouts/SecurityLayout',
      routes: [
        {
          path: '/',
          component: '../layouts/BasicLayout',
          authority: ['admin', 'user'],
          routes: [
            {
              path: '/',
              redirect: '/welcome',
            },
            {
              path: '/welcome',
              name: 'welcome',
              icon: 'smile',
              component: './Welcome',
            },
            {
              name: '管理员',
              icon: 'crown',
              routes: [
                { path: '/admin/list', name: '管理员列表', icon: 'smile', component: './admin/index' },
                { path: '/role/list', name: '角色管理', icon: 'smile', component: './role/index' },
                { path: '/auth/list', name: '权限管理', icon: 'smile', component: './auth/index' },
              ],
            },
            {
              component: './404',
            },
          ],
        },
        {
          component: './404',
        },
      ],
    },
    {
      component: './404',
    },
  ]